projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f099a9
)
BugĀ 637910 - GtkSpinner - does not animate
author
Carlos Garnacho
<carlosg@gnome.org>
Fri, 24 Dec 2010 17:05:07 +0000
(18:05 +0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Fri, 24 Dec 2010 18:37:49 +0000
(19:37 +0100)
Fix widget-to-window coordinates translation in the
style context animation code.
gtk/gtkstylecontext.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstylecontext.c
b/gtk/gtkstylecontext.c
index e42ebf8aace7ccfc834afc590674b57fc7f67b11..162c97136c3eb2a8acda3aff84b85e650d5293ee 100644
(file)
--- a/
gtk/gtkstylecontext.c
+++ b/
gtk/gtkstylecontext.c
@@
-3043,8
+3043,12
@@
_gtk_style_context_coalesce_animation_areas (GtkStyleContext *context,
cairo_rectangle_int_t *rect;
rect = &g_array_index (info->rectangles, cairo_rectangle_int_t, i);
- rect->x += rel_x;
- rect->y += rel_y;
+
+ /* These are widget relative coordinates,
+ * so have them inverted to be window relative
+ */
+ rect->x -= rel_x;
+ rect->y -= rel_y;
cairo_region_union_rectangle (info->invalidation_region, rect);
}